package net.zhengxinyun.performance.mapper.incentive;

import net.zhengxinyun.performance.entity.IncentiveEntity;
import net.zhengxinyun.performance.entity.IncentiveTypeEntity;
import net.zhengxinyun.performance.entity.IncentiveTypeItemEntity;
import net.zhengxinyun.performance.filter.IncentiveFilter;
import net.zhengxinyun.performance.filter.IncentiveTypeFilter;
import net.zhengxinyun.performance.filter.IndexFilter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IncentiveType {

    List<IncentiveTypeFilter> queryType(IncentiveTypeEntity entity);

    int deleteType(Long id);

    int insertType(IncentiveTypeEntity entity);

    int updateType(IncentiveTypeEntity entity);

    List<IncentiveTypeItemEntity> queryItems(Long id);

    int deleteItems(Long id);

    int insertItems(List<IncentiveTypeItemEntity> entity);

    int updateItems(IncentiveTypeItemEntity entity);

    int batchSaveType(List list);
    int  deleteTypeByDatetime(String datetime);
}